NotEmptyRange

@ExperimentalSinceKotoolsTypes(version = "4.2")
class NotEmptyRange<out T : Comparable<@UnsafeVariance T>>

Represents a range of comparable values that contain at least one value.

Parameters

T

the covariant type of values in this range.

Types

Link copied to clipboard

Class responsible for configuring an instance of NotEmptyRange.

Functions

Link copied to clipboard
open override fun toString(): String

Returns the string representation of this range.

Properties

Link copied to clipboard
val end: Bound<T>

The end of this range.

Link copied to clipboard
val start: Bound<T>

The start of this range.

Extensions

Link copied to clipboard
@ExperimentalSinceKotoolsTypes(version = "4.2")
operator fun <T : Comparable<T>> NotEmptyRange<T>.contains(value: T): Boolean

Returns true if this range contains the given value, or returns false otherwise.